home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr21
/
pc_cnvrt.zip
/
CONVERT.TXT
< prev
Wrap
Text File
|
1993-05-01
|
3KB
|
65 lines
Lawrence Software
P.O. Box 1002
Smithville, Texas 78957
PC-Convert is a self documented program which converts Engineering Units from
one form to another. It takes command line input (arguments), checks input for
acceptability, and makes a conversion if possible.
Syntax: convert <value> <unit> <precision>
<value> is any real number
<unit> is any available unit
<precision> is an integer number
See the following paragraphs for an explanation of the command line arguments.
VALUE: The first command line argument can be any real number, positive or
negative. PC-Convert will treat your input as a Pascal double precision
number. Keep in mind the desired accuracy of your answer, ie., if two decimal
place accuracy is acceptable in your answer, then five decimal place input is
not necessary.
UNITS: The second command line argument. For a list of available units,
enter "convert" without command line arguments. A list of available units is
provided with their correct abbreviations. The available units for this
ShareWare version number only thirty.
PRECISION: The third command line argument is optional, and the default is
four, (4). If, by a combination of a large input value and/or a high requested
precision, the result length exceeds the display capacity, an error message
will be presented.
In summary the following is a valid input: convert 100 psi 5
If the preceding command is entered, PC-Convert will convert 100 pounds per
square inch to various other units with the result presented to five decimal
place accuracy, (rounded off to the fifth decimal place).
Effort has been made to disallow and correct improper input. For example, if
you try to convert -15 psi, the program will reject the -15 and use -14.69595
which is the largest negative value possible in this case.
Conversion factors were chosen from several sources. One thing learned while
doing research for this program was the variance in conversion factors from
source to source. Also, several errors were found and corrected in the beta
version. User comments and suggestions are welcomed.
For instant access to this program using a hard disk, the program file,
convert.exe, should be placed in a directory which is in your path. My
philosophy is to place all single file utility programs of this type and all
program batch files in one directory. My path statement is set to this
directory and this directory ONLY. I call it "BIN", (for BINary). This is the
proven UNIX method. I have instant access, (from anywhere on the hard disk or
floppies) to this program, to all other useful utilities, and to all
application programs (via my program batch files).
Finally, I am at a loss to set a value on registration. This program will be
growing. My intent is to keep the registration cost nominal but commensurate
with the state of development. If you find this program useful, please contact
me regarding registration. Special versions are possible for your application.
This program may be distributed and copied freely so long as it is not modified
and this text file accompanies the executable file.